<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .a {
      width: 300px;
      height: 300px;
      background-color: antiquewhite;
      position: absolute;
    }

    .b {
      width: 200px;
      height: 200px;
      background-color: aqua;
      transform: translateY(50px);
    }

    .c {
      width: 100px;
      height: 100px;
      background-color: aquamarine;
      position: relative;
      top: 100px;
      right: 0;
    }
  </style>
</head>
<body>
  <div class="a">
    <div class="b">
      <div class="c"></div>
    </div>
  </div>
</body>
</html>